# schemas/address.py
from pydantic import BaseModel, Field
from typing import Optional
class AddressCreate(BaseModel):
    name: str 
    phone: str 
    address: str  
    is_default: bool = Field(default=False)  

class AddressOut(AddressCreate):
    id: Optional[int] = None 
    user_id: Optional[int] = None 
    class Config:
        from_attributes = True

